package com.milhouz.quizzdroid.bean;

public class Player {

	private final int playerNumber;
	private final Score score;

	public Player(final int playerNumber) {
		this.playerNumber = playerNumber;
		this.score = new Score();
	}

	public int getPlayerNumber() {
		return playerNumber;
	}

	public String getPlayerScore() {
		StringBuilder sb = new StringBuilder();
		sb.append(score.getNbCorrectResponses()) //
				.append("/") //
				.append(score.getNbQuestions());
		return sb.toString();
	}

	public Score getScore() {
		return score;
	}

}
